package com.yyy.repository;

import com.yyy.entity.Pnr;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.EntityGraph;

/**
 * Created by admin on 2018/8/7.
 */

public interface PnrRepository extends BaseRepository<Pnr, Integer> {
    @Override
    @EntityGraph(value="passengersQuery",type= EntityGraph.EntityGraphType.FETCH)
    Page<Pnr> findAll(Pageable var1);
}
